<template>
    <div>我是父组件</div>
    <VChild :parentData="parentData"/>
</template>

<script setup>
import { provide,ref } from 'vue';
import VChild from '../components/VChild.vue';
let parentData=ref('我是父组件的数据')
let parentData2=ref('我使用了parentData')
provide('parentData2',parentData2)
</script>

<style scoped>

</style>